// JavaScript Document

// CALENDAR PLUGIN - DECLARATION
 
$(document).ready(function() {
	
    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();
		
    $('#mh-event-calendar').fullCalendar({
		
        header: {
            left: 'prev,next today',
            center: 'title',
            // right: 'month,agendaWeek,agendaDay',
            right: '',
            theme: true
				
        },
        columnFormat: {
            month: 'dddd',    // Mon
            week: 'dddd', // Mon 9/7
            day: 'dddd'  // Monday 9/7
        },
        editable: true,
        minTime: '11:00',
        firstDay: 1,
        axisFormat: 'H:mm' ,

        eventSources: [            

            
        {
            url: 'http://www.google.com/calendar/feeds/magyarhangya.hu_nnog5rsmct7qjvsbj2u8qfghqs%40group.calendar.google.com/public/basic',
            className: 'nice-event-1' 
        },
        {
            url:'http://www.google.com/calendar/feeds/magyarhangya.hu_fnc38l2tpr77gvr7qsgseqhdts%40group.calendar.google.com/public/basic',
            className: 'nice-event-2' 
        }
        ,{
            url: 'http://www.google.com/calendar/feeds/magyarhangya.hu_2h8u4pi8evqe5aqv5m013qpgls%40group.calendar.google.com/public/basic',
            className: 'nice-event-3' 
        }
        ,{
            url: 'http://www.google.com/calendar/feeds/magyarhangya.hu_id0ib69gpp08vvifnhv6or8ga4%40group.calendar.google.com/public/basic',
            className: 'nice-event-4' 
        },
        {
            url: 'http://www.google.com/calendar/feeds/magyarhangya.hu_oherkmulbq1601lampj6lokhvg%40group.calendar.google.com/public/basic',
            className: 'nice-event-5' 
        }		
                	 	
        ],
        timeFormat: 'H:mm'	
		
    });
		
});